﻿using Hander.Controls;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Hander.Forms.Frame.TestFrm
{
    public partial class TestCustomBoxFrm : Form
    {
        public TestCustomBoxFrm()
        {
            InitializeComponent();
        }

        private void CustomComboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            Console.WriteLine("selected changed!");
        }

        private void CustomComboBox1_DropDown(object sender, EventArgs e)
        {
            Console.WriteLine("DropDown !");
        }

        private void CustomComboBox1_DropDownClosed(object sender, EventArgs e)
        {
            Console.WriteLine("CustomComboBox1_DropDownClosed !");
        }

        private void TestCustomBoxFrm_Load(object sender, EventArgs e)
        {
            DataGridView gridView = new DataGridView();
            gridView.BorderStyle = BorderStyle.None;
            gridView.Columns.Add("Column1", "Column 1");
            gridView.Columns.Add("Column2", "Column 2");
            gridView.Columns.Add("Column3", "Column 3");
            gridView.Columns.Add("Column4", "Column 4");
            gridView.Columns.Add("Column5", "Column 5");
            //CustomComboBox1.DropDownControl = gridView;
            UC_PageListView uc = new UC_PageListView();
            CustomComboBox1.DropDownControl = uc;
            



        }

        private void button1_Click(object sender, EventArgs e)
        {
            CustomComboBox1.DroppedDown = false;
            CustomComboBox1.DroppedDown = true;
        }
    }
}
